package xutils

import (
	"reflect"
	"testing"
	"fmt"

)

func Assert(t *testing.T, condition bool) {
	if !condition {
		f, l := FileLine(2)
		fmt.Printf("%s:%d: Assertion failed.\n", f, l)
		t.FailNow()
	}
}

func AssertEqual(t *testing.T, a, b interface{}) {
	if !reflect.DeepEqual(a, b) {
		f, l := FileLine(2)
		fmt.Printf("%s:%d: Assertion failed.\n", f, l)
		t.FailNow()
	}
}
